package com.whalefin.service;


import com.whalefin.domain.AdminUser;
import com.whalefin.persistence.AdminUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


@Controller
public class LoginService {

    @Autowired
    private AdminUserMapper adminUserMapper;

    public AdminUser queryLoginUser(String loginName,String loginPassword){
       return adminUserMapper.queryLoginUser(loginName,loginPassword);
    }

    public int register(String loginName,String loginPassword){
        return adminUserMapper.register(loginName,loginPassword);
    }

    public int queryLoginUserByName(String loginName){
        return adminUserMapper.queryLoginUserByName(loginName);
    }


}